<%@ page import="java.util.Date"%>

<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>

	<%! int a = 2; %>
	<% int c = 3; %>


 Hello World:  <%= new Date().toLocaleString() %>
 <% System.out.println(new Date().toLocaleString());  %>
 
 <form action = "/result.jsp" method="post">
	用户：<input type="text" name="user" size="20"> <br>
	密码：<input type="password" name="passwd" size="20"> <br>
    <input type="submit" value="提交">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置">
 </form>
</body>
</html>